package thinkingJava.chapter05;

public class Leaf {
	int i;
	Leaf increamnt() {
		i++;
		return this;
	}
	void print() {
		System.out.println("i = " + i);
	}
	public static void main(String[] args) {
		Leaf l = new Leaf();
		l.increamnt().increamnt().increamnt().print();
	}
}
